package com.example.demo0

import com.example.util.p


class CivicCenterTask2{
    fun execute(askForHelp:()->Unit){
        this.lineUp()
        askForHelp()
        this.evaluate()
    }

    private fun evaluate() {
        p("evaluaten service attitude")
    }

    private fun lineUp() {
        p("line up to take a number")
    }


}


fun pullSocialSecurity(){
    p("ask for pulling the social security")
}

fun applyForCitizenCard(){
    p("apply for a citizen card")
}






fun main(){
    val a = CivicCenterTask2()
    a.execute(::pullSocialSecurity)
    a.execute(::applyForCitizenCard)
}


